@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: '메뉴관리 Projection View'
@Metadata.allowExtensions: true
@OData.hierarchy.recursiveHierarchy:[{ entity.name: 'ymoon_i_formmenu' }]

@Search.searchable: true
define view entity ymoon_c_menu as projection on ymoon_r_menu
{
    key FormId,
    key MenuId,
    ParentMenu,
    _Parent.MenuName as ParentMenuName,
    @Search.defaultSearchElement: true
    @Search.fuzzinessThreshold: 0.87
    MenuName,
    MenuSeq,
    CreateAt,
    CreateBy,
    ChangedAt,
    ChangedBy,
    LocalLastChangedAt,
    LocalLastChangedBy,
    /* Associations */
    _Form : redirected to parent ymoon_c_form,
    _Parent : redirected to ymoon_c_menu,
    _Sub : redirected to ymoon_c_menu
}
